import request from "@/utils/request.js";
import functions from "@/utils/functions.js";


/**
 * 品牌详情
 * @param {Object} data
 */
export function brandDetail(data) {
	return request({
		url: '/zhonggu/user/brand/index',
		method: "post",
		data
	});
}

/**
 * 关注品牌
 * @param {Object} data
 */
export function brandCollection(data) {
	return request({
		url: '/zhonggu/user/brand/collection',
		method: "post",
		data
	});
}

/**
 * 获取所有品牌和类型
 * @param {Object} data
 */
export function brandAndType(data) {
	return request({
		url: '/zhonggu/user/index/brandAndType',
		method: "post",
		data
	});
}

/**
 * 获取分类页面下面的品牌
 * @param {Object} data
 */
export function allType(data) {
	return request({
		url: '/zhonggu/user/type/index',
		method: "post",
		data
	});
}

/**
 * 获取品牌的帖子
 * @param {Object} data
 */
export function brandArticles(data) {
	return request({
		url: '/zhonggu/user/article/getBrandArticles',
		method: "post",
		data
	});
}

/**
 * 获取潮购里面的品牌馆下面的6个品牌
 * @param {Object} data
 */
export function hotBrandList(data) {
	return request({
		url: '/zhonggu/user/index/hotBrandList',
		method: "post",
		data
	});
}



